package com.ruoyi.business.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.ShopServiceTypeMapper;
import com.ruoyi.business.domain.ShopServiceType;
import com.ruoyi.business.service.IShopServiceTypeService;

/**
 * 商家服务类别关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-12
 */
@Service
public class ShopServiceTypeServiceImpl implements IShopServiceTypeService 
{
    @Autowired
    private ShopServiceTypeMapper shopServiceTypeMapper;

    /**
     * 查询商家服务类别关联
     * 
     * @param id 商家服务类别关联主键
     * @return 商家服务类别关联
     */
    @Override
    public ShopServiceType selectShopServiceTypeById(Long id)
    {
        return shopServiceTypeMapper.selectShopServiceTypeById(id);
    }

    /**
     * 查询商家服务类别关联列表
     * 
     * @param shopServiceType 商家服务类别关联
     * @return 商家服务类别关联
     */
    @Override
    public List<ShopServiceType> selectShopServiceTypeList(ShopServiceType shopServiceType)
    {
        return shopServiceTypeMapper.selectShopServiceTypeList(shopServiceType);
    }

    /**
     * 新增商家服务类别关联
     * 
     * @param shopServiceType 商家服务类别关联
     * @return 结果
     */
    @Override
    public int insertShopServiceType(ShopServiceType shopServiceType)
    {
        return shopServiceTypeMapper.insertShopServiceType(shopServiceType);
    }

    /**
     * 修改商家服务类别关联
     * 
     * @param shopServiceType 商家服务类别关联
     * @return 结果
     */
    @Override
    public int updateShopServiceType(ShopServiceType shopServiceType)
    {
        return shopServiceTypeMapper.updateShopServiceType(shopServiceType);
    }

    /**
     * 批量删除商家服务类别关联
     * 
     * @param ids 需要删除的商家服务类别关联主键
     * @return 结果
     */
    @Override
    public int deleteShopServiceTypeByIds(Long[] ids)
    {
        return shopServiceTypeMapper.deleteShopServiceTypeByIds(ids);
    }

    /**
     * 删除商家服务类别关联信息
     * 
     * @param id 商家服务类别关联主键
     * @return 结果
     */
    @Override
    public int deleteShopServiceTypeById(Long id)
    {
        return shopServiceTypeMapper.deleteShopServiceTypeById(id);
    }
}
